<?php

	/**
	 * @see Bike_Js_Container
	 */
	require_once 'Bike/Js/Container.php';
	
	
	class Bike_Js_CodeContainer extends Bike_Js_Container
	{
        static protected $_codeDelimiter = ';';

        public function _toString()
		{
			$parts = (array) $this->_prepareValues();
			$codeDelimiter = $this->getCodeDelimiter();
			$code = '';
			foreach($parts as $name => $part)
			{
				if($part)
				{
					$code .= $part.((substr($part, -(strlen($codeDelimiter))) != $codeDelimiter) ? $codeDelimiter : '');
				}
			}
			return $code;
		}
	}
